
dialog{
	/*display: grid;*/
    background:#e9ecef;;
    color: #212529;
    max-inline-size: min(100vw,160ch);
    /*max-inline-size: min(90vw,60ch);*/
    max-block-size: min(80vh,100%);
    max-block-size: min(80dvb,100%);
    margin: auto;
    padding: 0;
    position: fixed;
    inset: 0;
    border-radius: 2rem;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    /*box-shadow: 10px 10px 5px lightgrey;*/
    z-index: 2147483647;
    overflow: hidden;
    transition: opacity .5s cubic-bezier(.25,0,.3,1);
	border-style: solid;
    border-width: 0;
   /* border-radius: 10%;*/
	--scrollbar-color: #ced4da;
}

dialog[modal-mode="mega"]::backdrop {
  backdrop-filter: blur(25px);
}

dialog::backdrop {
  transition: backdrop-filter .5s ease;
}

html:has(dialog[open][modal-mode="mega"]) {
  overflow: hidden;
}

.warning-message {
	align-items: center;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: center;
}

.warning-message p {
	font-weight : 700;
}

.warning-message>svg {
    inline-size: 100%;
    stroke: #000;/*rgb(73, 80, 87);*/
	fill: none;
	stroke-linecap:round;
	stroke-linejoin:round;
}

.warning-message h2{
	font-weight : 700;
	margin-top: 0px;
   margin-bottom: 0px;
}

.info-message {
	align-items: center;
    gap: 16px;
    align-items: center;
}

.info-message p {
	font-weight : 700;
}

.info-message>svg {
    inline-size: 100%;
    stroke: #000;/*rgb(73, 80, 87);*/
	fill: none;
	stroke-linecap:round;
	stroke-linejoin:round;
}

.info-message h2{
	font-weight : 700;
	margin-top: 0px;
   margin-bottom: 0px;
}
.diagform {
	display : grid;
	grid-template-rows: auto 1fr auto;
	align-items: start;
	max-block-size: 90vh;
    background-origin: border-box;
    background-repeat: no-repeat;
    border-style: solid;
    border-width: 0;
	margin: 0;
	color: rgb(33, 37, 41);;
}

dialog>form>article {
    overflow-y: auto;
    max-block-size: 100%;
    overscroll-behavior-y: contain;
    display: grid;
    justify-items: flex-start;
    gap: 16px;
    box-shadow: rgba(37, 38, 39, 0.04) 0px 3px 5px;
    z-index: 1;
    padding-inline: 2rem;
    padding-block: 2rem;
   /* margin-bottom : 1rem;*/
}

dialog>form>footer {
    display: flex;
	/*background-color: */
    background: rgba(93,106,111,.6);
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    padding-inline: 1.5;
    padding-block: 1;
}

dialog>form>footer>menu:only-child {
    -webkit-margin-start: auto;
    margin-inline-start: auto;
}

dialog>form>footer>menu {
    margin : auto;
    width :  50%;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    align-items: center;
    justify-content: center;
	/*padding-right : 10px;
    gap: 1rem;
    -webkit-padding-start: 0;
    padding-inline-start: 0;*/
    
}

dialog>form>footer>menu>button {
   /* display: flex;
    background-color: #fff;*/
	font-size: 16px;
	text-align: center;
	text-indent: 0px;
	text-rendering: auto;
	text-shadow: rgb(222, 226, 230) 0px 1px 0px;
	text-size-adjust: 100%;
	text-transform: none;
	accent-color: rgb(66, 99, 235);
	align-items: center;
	appearance: auto;
	border :  2px  solid rgb(222, 226, 230);
	border-radius :  5px;
    padding : min(10px, 5%);
	box-shadow : rgba(37, 38, 39, 0.04) 0px 3px 5px -2px, rgba(37, 38, 39, 0.06) 0px 7px 14px -5px, rgb(222, 226, 230) 0px 1px 0px 0px, rgba(174, 181, 188, 0.25) 0px 0px 0px 0px;
	box-sizing: border-box;
	caret-color: rgb(66, 99, 235);
	color: #000; /*rgb(33, 37, 41);*/
    margin-top : min(5px, 5%);
    margin-bottom : min(5px, 5%);
}

dialog>form>footer>menu>button:hover{
	background:#5f5f5f;
	color:#ffffff;
}

dialog>form>footer>menu>button:focus{
	background:#5d6a6f;
	color:#ffffff;
}

.svg-icon {
  width: 3em;
  height: 3em;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
  fill: #4691f6;
}

.svg-icon circle {
  stroke: #4691f6;
  stroke-width: 1;
}